using System;
using System.Collections.Generic;
using System.Text;

namespace CallerID
{
    public class CallItem
    {
        private bool m_Read;
        private DateTime m_Time;
        private int m_Seconds;
        private string m_Number;
        private string m_Name = "";
        private string m_Address = "";

        public bool Read
        {
            get { return m_Read; }
            set { m_Read = value; }
        }
        public DateTime Time
        {
            get { return m_Time; }
            set { m_Time = value; }
        }
        public int Seconds
        {
            get { return m_Seconds; }
            set { m_Seconds = value; }
        }
        public string Number
        {
            get { return m_Number; }
            set { m_Number = value; }
        }
        public string Name
        {
            get { return m_Name ?? ""; }
            set { m_Name = value; }
        }
        public string Address
        {
            get { return m_Address ?? ""; }
            set { m_Address = value; }
        }

        public CallItem()
        {
            m_Read = false;
            m_Time = DateTime.MinValue;
            m_Number = "";
            m_Name = "";
            m_Address = "";
        }
        public CallItem(bool read, DateTime time, int seconds, string number, string name, string address)
        {
            m_Read = read;
            m_Time = time;
            m_Seconds = seconds;
            m_Number = number;
            m_Name = name;
            m_Address = address;
        }
    }

}
